package com.example.demo.service;

import com.example.demo.mapper.MyMapper;
import com.example.demo.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyService {


    @Autowired
    MyMapper mapper;

    public String getPassword(User user){
        return mapper.getPassword(user);
    }

    public int Register(User user){
        return mapper.Register(user);
    }

    public User getInfo(String username){
        return mapper.getUser(username);
    }
}
